package com.hc.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;

import java.util.Date;

@Data
/*@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@TableName(value = "users") //表名 和 类名不同*/
public class Users {
  @TableId(type= IdType.AUTO)
    private int uid;
    private String username;
    private String password;
    private String nickname;
    @TableField(fill = FieldFill.INSERT)  //添加时自动填入
    private Date create_time;
    @TableField(fill = FieldFill.INSERT_UPDATE) //添加修改时自动处理
    private Date update_time;
    @TableLogic //删除变为修改次列 逻辑删除
    private int isdelete;
    @Version//乐观锁 version版本
    private int versionid;
}
